
#ifndef  __CMD_QUEUE_H__
#define  __CMD_QUEUE_H__

//********************************************************************
#include "sys_port.h"

#include "list.h"
//********************************************************************
#ifdef __cplusplus
extern "C" {
#endif
//********************************************************************
typedef struct 
{
    int id;
    int time;

} cmd_info_t;

typedef struct  {
	slist_t 	e_tail;
    cmd_info_t  e_attr;
}cmd_link_t;

typedef struct  {
    int         len;
	slist_t *   e_head;
}cmd_manage_t;
//********************************************************************


int cmd_queue_init(void);
int cmd_queue_destroy(void);
int cmd_queue_recv(cmd_info_t *cmd);
int cmd_queue_send(cmd_info_t * msg);
int cmd_queue_trav(void);
int cmd_queue_get_len(void);
//********************************************************************
#ifdef __cplusplus
}
#endif
//********************************************************************

#endif

